package com.eshop.modules.mp.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.mp.service.dto.ArticleDto;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.mp.service.dto.ArticleQueryCriteria;
import com.eshop.modules.mp.vo.YxArticleQueryVo;
import java.util.List;
import com.eshop.modules.mp.domain.Article;
import com.eshop.common.service.BaseService;

public interface ArticleService extends BaseService<Article>
{
    List<YxArticleQueryVo> getList(final int page, final int limit);
    
    YxArticleQueryVo getDetail(final int id);
    
    void incVisitNum(final int id);
    
    Map<String, Object> queryAll(final ArticleQueryCriteria criteria, final Pageable pageable);
    
    List<Article> queryAll(final ArticleQueryCriteria criteria);
    
    void download(final List<ArticleDto> all, final HttpServletResponse response) throws IOException;
}
